package com.pxst.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxst.merchant.entity.SysMerchantBankCardEntity;
import com.pxst.merchant.req.MerchantAccountListReq;
import com.pxst.merchant.req.MerchantAccountReq;
import com.pxst.merchant.resp.MerchantAccountResp;
import com.pxst.resp.ApiResp;
import com.pxst.resp.PageResp;
import org.springframework.stereotype.Service;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-14 14:43
 */
@Service
public interface SysMerchantBankCardService extends IService<SysMerchantBankCardEntity> {
    
    /**
     * -Author: @Ryan
     * -Description: 条件查询商户的银行卡账户
     * -Param: [conditions]
     * -return: com.pxst.resp.ApiResp<com.pxst.resp.PageResp<com.pxst.merchant.resp.MerchantAccountResp>>
     **/
    public ApiResp<PageResp<MerchantAccountResp>> getMerchantAccountListByCondietions(MerchantAccountListReq conditions);
    
    /**
     * -Author: @Ryan
     * -Description: 更新商户银行卡状态
     * -Param: [merchantAccountReq]
     * -return: com.pxst.resp.ApiResp
     **/
    public ApiResp updateMerchantBankCardStatus(MerchantAccountReq merchantAccountReq);
}
